#pragma once
#include <QtGui/QWidget>
#include "ui_ZLoginWidget.h"

class ZLoginWidget : public QWidget
{
#define ZWuliuCfgFile "ZWuliuCfgFile.ini"
	Q_OBJECT
public:
	ZLoginWidget(QWidget *parent = 0, Qt::WFlags flags = 0);
	virtual ~ZLoginWidget(void);

public:
	void OnLoginSuccess();
	bool IsLoginSuccess() const;

private slots:
	void _onOpenUrl(const QString& sUrl);
	void _onLogin(bool checked);
	void _onLocalPackageRecord(bool checked);

private:
	virtual void keyPressEvent(QKeyEvent *pEvent);

private:
	void _loadByRemindMe();
	void _SaveByRemindMe();

private:
	Ui::ZLoginClass ui;
	bool			m_bLoginSuccess;
};

